$(document).ready(function() {
	var now = new Date();
	now.addDays(-1);
	var now2 = new Date();
	now2.addDays(0);
	now2.setHours(0,0,0,0);
    $('#date9').DatePicker({
		flat: true,
		date: [''],
		current: now,
		format: 'Y-m-d',
		calendars: 1,
		mode: 'range',
		onRender: function(date) {
			return {
				disabled: (date.valueOf() < now.valueOf()),
				className: date.valueOf() == now2.valueOf() ? 'datepickerSpecial' : false
			}
		},
		starts: 0,
		onChange: function(formated, dates){
			$('#inputDate').val(formated);
		}
	});
});